package com.car.dao;

import com.car.domain.Car;
import com.car.domain.User;

import java.util.List;

/**
 * 用户的 Dao
 */
public interface UserDao extends BaseDao<User> {
    User findByPhone(String phone) throws Exception;

    User login(String phone, String password) throws Exception;

    List<Car> findUserCarsById(Integer id) throws Exception;
}
